import request from '@/utils/request'
import { unionApiUrl } from '@/api/config'

export function getList(data) {
    return request({
        url: unionApiUrl + '/youthActivity/getPageYouthActivity',
        method: 'post',
        data
    })
}

export function getDetail(params) {
    return request({
        url: unionApiUrl + '/youthActivity/getYouthActivityById',
        method: 'get',
        params
    })
}

export function addData(data) {
    return request({
        url: unionApiUrl + '/youthActivity/insertSelective',
        method: 'post',
        data
    })
}

export function editData(data) {
    return request({
        url: unionApiUrl + '/youthActivity/updateByPrimaryKeySelective',
        method: 'post',
        data
    })
}

export function deleteData(params) {
    return request({
        url: unionApiUrl + '/youthActivity/deleteByPrimaryKey',
        method: 'post',
        params
    })
}

export function getFiles(data) {
    return request({
        url: unionApiUrl + '/youthActivityFile/getPageYouthActivityFile',
        method: 'post',
        data
    })
}

